gtkiconcache: Use g_stat instead of fstat
authorChristoph Reiter <reiter.christoph@gmail.com>
Tue, 2 Jun 2020 18:31:33 +0000 (20:31 +0200)
committerChristoph Reiter <reiter.christoph@gmail.com>
Tue, 2 Jun 2020 18:35:56 +0000 (20:35 +0200)
commite7c9e2060c014c8f0d4ea20dbac659d8ce2a2bd5
treee0b0e9839ea7d4af70099daa35dfd2cffcaa72ee
parentc07ae5806ee14511a45998ee291777a63b24f262
gtkiconcache: Use g_stat instead of fstat

stat/fstat aren't compatible with GStatBuf on Windows in all cases.
Since we don't really need the file descriptor anyway here replace it with
a g_stat call.

This fixes a compiler warning with 64bit mingw.
And lets us remove this scary ifdeffery.
gtk/gtkiconcache.c